package edu.beyond.employment.company.dao;

import edu.beyond.employment.commom.util.DBUtil;
import edu.beyond.employment.company.entity.CompanyEntity;

/**
 * CompanyDao
 * 
 * @author GOBeyond
 * @date 2016年10月7日
 */
public class CompanyDao {

	public CompanyEntity login(String code, String password) {
		String sql = "SELECT id,name FROM company WHERE code=? AND password=?";
		return DBUtil.getUniqueResult(CompanyEntity.class, sql, code, password);
	}

}
